const http = require("http");

// console.log(http);

const serverObj = http.createServer((req, res)=>{
    console.log(req.url);
    console.log(req.method);
    res.write("hello");
    res.end();
})

serverObj.listen(3000, ()=>{
    console.log("服务器开启成功")
});

// localhost:3000 和 127.0.0.1:3000

